package cc.fozone.note.service;

import java.util.List;

import cc.fozone.note.beans.Article;

public interface IArticleService {
	/**
	 * @param article
	 */
	public void insert(Article article);
	
	/**
	 * 保存文章
	 * @param article
	 */
	public void save(Article article);
	
	/**
	 * @return
	 */
	public Article selectLast();
	
	/**
	 * @param title
	 * @return
	 */
	public List<Article> selectFuzzyByTitle(String title);
	
	/**
	 * @param id
	 * @return
	 */
	public Article selectById(long id);
	
	/**
	 * @param id
	 */
	public void deleteById(long id);
}
